# -*- coding: utf-8 -*-
"""
@Time ： 2023/4/20 21:46
@Auth ： 叶东宇
@File ：huanKongGe.py
"""
def huanKongGe(lis):
    k = 0
    while k < len(lis):
        if lis[k] == " ":
            lis = lis[:k] + "%20" + lis[k+1:]
        k += 1
    return lis


def t():
    k = 0
    j = 20
    while k<j:
        k += 2
        j += 1
        print(j)

def t1():
    lis = [1,2,3,4]
    for i in lis:
        # if i != 2:
        if i == 2:
            lis.append(5)
    print(lis)
if __name__ == "__main__":
    # lis = "fdajf  asdfjjasdf dsalkjfk a"
    # print(huanKongGe(lis))
    t1()